package org.codeart.builder;

import org.codeart.builder.product.Bike;

/**
 * 指挥者
 */
public class Director {

    private final Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Bike buildBike() {
        return builder.buildFrame().buildSeat().build();
    }
}
